﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Common.Common;
using ZBJF.Warranty.Common.Enums.InsuranceWarranty;

namespace ZBJF.Warranty.Model.ViewModel.InsuranceWarranty
{
   public class ExportInsuranceWarrantyRecordModel
   {
       public ExportInsuranceWarrantyRecordModel ()
       {
           I = 0;
       }
       public static int I = 0;
       /// <summary>
       ///编号
       /// </summary>
       public int OrderNum
       {
           get { return ++I; }
       }
       /// <summary>
       ///保案单号
       /// </summary>
       public string WarrantyRecordNo { set; get;}
       /// <summary>
       ///报案人
       /// </summary>
       public string Reporter { set; get; }
       /// <summary>
       ///报案人电话
       /// </summary>
       public string ReporterPhone { set; get; }
       /// <summary>
       ///
       /// </summary>
       public string ProvinceName { set; get; }
       /// <summary>
       ///
       /// </summary>
       public string CityName { set; get; }
       /// <summary>
       ///
       /// </summary>
       public string AccidentAddressDesc { set; get; }
       /// <summary>
       /// 出险地址
       /// </summary>
       public string AccidentAddress
       {
           get { return ProvinceName + CityName + AccidentAddressDesc; }
       }

       /// <summary>
       ///备注信息
       /// </summary>
       public string Remark { set; get; }
       /// <summary>
       ///工单状态
       /// </summary>
       public byte? Status { set; get; }

       public string StatusDesc
       {
           get { return EnumHelper.Instance.GetDescription(typeof(InsuranceWarrantyStatus), Status); }
       }

       /// <summary>
       ///跟进人
       /// </summary>
       public string UserDisPlayName { set; get; }
       /// <summary>
       /// 
       /// </summary>
       public DateTime CreateTimeTemp { set; get; }

       public string CreateTime
       {
           get
           {
               return CreateTimeTemp > DateTime.MinValue ? CreateTimeTemp.ToString("yyyy-MM-dd HH:mm:ss") : string.Empty;
           }
       }

       /// <summary>
       ///关单时间
       /// </summary>
       public DateTime LastModifyTime { set; get; }

       public string SingleTime
       {
           get { return LastModifyTime > DateTime.MinValue? LastModifyTime.ToString("yyyy-MM-dd HH:mm:ss"):string.Empty; }
       }

       /// <summary>
       ///第三方承保公司
       /// </summary>
       public string InsuranceCompany { set; get; }
       /// <summary>
       ///承保公司
       /// </summary>
       public string InsuranceCompanyBranch { set; get; }
       /// <summary>
       ///保险产品名称
       /// </summary>
       public string ProductName { set; get; }
       /// <summary>
       ///被保险设备品牌
       /// </summary>
       public string ProductBrandName { set; get; }
       /// <summary>
       ///被保险设备型号
       /// </summary>
       public string ProductModelName { set; get; }
       /// <summary>
       ///销售商户名称
       /// </summary>
       public string SaleVendorName { set; get; }
       /// <summary>
       ///保险产品类别
       /// </summary>
       public string InsuranceCategoryName { set; get; }
       /// <summary>
       ///第三方保单号
       /// </summary>
       public string ThirdOrderNO { set; get; }
       /// <summary>
       ///被保险人名称
       /// </summary>
       public string UserName { set; get; }
       /// <summary>
       ///被保险人电话
       /// </summary>
       public string UserPhone { set; get; }
       /// <summary>
       ///证件号
       /// </summary>
       public string CertificateNO { set; get; }
       /// <summary>
       ///被保险设备识别码
       /// </summary>
       public string IMEI { set; get; }
       /// <summary>
       ///损失名称
       /// </summary>
       public string LostName { set; get; }
       /// <summary>
       ///经销商价格
       /// </summary>
       public decimal LostPriceForUser { set; get; }
       /// <summary>
       ///保险结算价
       /// </summary>
       public decimal LostNuclearPrice { set; get; }
    }
}
